﻿using _15Net8AspNetCore_ORM.Models;
using Microsoft.AspNetCore.Mvc;

namespace _15Net8AspNetCore_ORM.OrderRespository
{
    public interface IOrderRespository
    {

        public Order AddOrder(Order order);


        /// <summary>
        /// 删除商品
        /// </summary>
        public void DeleteOrder(int id);


        /// <summary>
        /// 修改商品
        /// </summary>
        public void UpdateOrder(int id, Order Order);


        /// <summary>
        /// 获取商品
        /// </summary>
        [HttpGet("id")]
        public Order GetOrder(int id);


        /// <summary>
        /// 获取商品
        /// </summary>
        [HttpGet]
        public List<Order> GetAllOrder();

    }
}
